package cn.edu.cqupt.educationfoundation.votingsystem.util;

import cn.edu.cqupt.educationfoundation.votingsystem.common.excepction.ServerException;

/**
 * @author :DengSiYuan
 * @date :2019/10/26 21:26
 * @desc :
 */
public class ServerUtil {

    public static void isNotNull(Object o){
        if (o == null){
            throw new ServerException("空指针异常！");
        }
    }

}
